package adv7;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;;

public class PropTest {

	public static void main(String[] args) throws IOException {
		// Properties
		byte b = 11;
		byte b2 = (byte) ~b;
		Properties p = new Properties();
		FileInputStream f = new FileInputStream("info.properties");
		p.load(f);
		f.close();
		System.out.println(p);
		String teacher = p.getProperty("teacher");// get
		System.out.println(teacher);
	}

}
